Implement a textbook data structure or search algorithm, such as binary search or graph traversal, and analyze its time and space complexity.