Some basic data structures implemented in Java