Initial code push. Implements the algorithm and includes a working unit test.