Implemented LinearSearch algorithm