added an string sorter that sorts strings using the a* algorithm