Now the sorting is done recursively
Removed unused methods now the class uses a recursively method to sort the words