Some data structures in Java