DataStructure in java