Sample codes for data structures