Initial commit, high order svd function