fixed abs->fabs in orthogonal to fix a bug