Implemented range search