String sort algorithm devlopment