simple imlementations of common data structures/algorithms