filled in buildTable method and added comments

in StringSearch.java, I added comments and filled in buildTable method