An algorithm for solving Toeplitz systems by embedding in infinite systems