Transmission: almost there
Transmission: algorithm seems correct, now need to test on Bryant's corner cases