Added better p18 solution and test. Updated requirements.txt and README.