TreeSet solution in Search to Vector