Refactored problem1 so that helper functions are in its own java file.
Updated README. Converted all code to work with BigInteger type, because numbers get very very big (bigger than long).