The algorithm Input: m-by-n matrix A, target rank k