fixing svdtriplet to be more numpy efficient