Basic Search Algorithms for contiguous memory storage