undid addition of 'kth-diagonal', bug fix still implemented