Data structure project by Java