Add P01-P04 from http://aperiodic.net/phil/scala/s-99/