IMO, that thread is not applicable to this problem.
Prove this assertion!
In reply to Re^4: Fast algorithm for 2d array queries by BrowserUk in thread Fast algorithm for 2d array queries by baxy77bax