Make functions "external" functions.

Now I can wrap them with f2py!
Add a Makefile and a Fortran 77 implementation.

Only Problem 1 implemented so far.