Step-to-step dimension reducer algorithm using svd decomposition