Homespun Algorithms and Data Structures