The BOOL algorithm for fast spacial clustering via discretization