Vectorized the updates so it is much faster.
Testing svd.