Modified: helpers.py and tests/test_helpers.py

I moved several functions out of problems.py and into helpers.py
in anticipation of major refactoring my problem code.
Modified: refactoring on problems.py. problem12() still broken.
Added: .gitignore to ignore dotfiles and .pyc files.