basic java data structure used in algorithms.