Wrote a basic tester that applies t the algorithm