Some standard data structures and algorithms implemented in Scala