Gnomon algorithm functions

From Gnomon Chronicles