svd, matrix+*double sped up, pointerToMatrix fixed