What shape do you expect the result to be. Is it still always ```(n, 3)```? If so, I have an alternative implementation suggestion for this PR which will simplify significantly & avoid the need for multiple copies of data (as has been added by this PR).