list, stack, queue implementation in java