Abstracted some functions out of main. Added poorNameCount and a Binary Search.

Added the writeup as well.