practice in java of basic data structures