Added Prolog version

There is one major bug. If the input file contains lines with - the
program will fail.