sorted and removed duplicates from solved words array.