search debugged. everything is working. hw1 done.