finished all svd comparison code