Started implementing Egypt algorithm

What there is of it so far works, but is super duper slow. I probably
need to rewrite the code to avoid using the 4 nested for loops.