Implementations of data structures in Java