now it is able to search 1 dimension