randomSlice, squareUpMatrix, minor changes
fixed some bugs I had introduced to truncated dual computations