explain why linear search and binary search space complexity is O(1)