Added buggy linear search