datastructures implementation in java, samples