Started implementing the decision version of the program - I will optimize these tomorrow and then start the writeup about their design.