Implemented algorithm by Tunamage. Updated checkall to allow user to
choose the algorithm and set data precision and reference systems to
use.