codes for implementing algorithms and data structures