passed off binary search and Sub_words