Data Structures examples in java