Changed TreeSet to an Array.