Further progress on recursive algorithm. Nearly completed.
Fixed right, left spins. (they were inverted)