Added P3

Added a solution to problem P3.
Merge branch 'master' of https://github.com/goakley/ihpc-2013