Implemented safeNormalize , dot , setZero methods