Some basic data structures in Scala