I'm sure the i-1, j-1 is legacy from the original code writer, but is this what we want? I would imagine that if said setElement(0,0,0), I'd want element 0,0 to be set to 0. Do you think it's worth cleaning up the interface @rwcarlsen?