Fixed UVW bug and added speed optimization

Can now pass a precomputed transformation matrix to computeUVW(). Should see a significant speed increase from this.

Signed-off-by: Danny Price <dan@thetelegraphic.com>