Module: Linear and binary search for elements in an array