Created linear search