Fixing mySVD function