Fixed number of results in range_search_2d.
Added test for range_search_2d.