I want to build a spell checker using binary search.

Can anyone guide me how to do the binary search on strings.