Bug fixed in TDMA.

Also TDMA now works with diagonals of equal length filled with zeros on one side