read words with Scanner
correct binary search error