Fixed index error in writeResutls.`
Merge branch 'master' of https://github.com/evanwest/CS185_Project1