Linear system solving and determinant computation for Toeplitz matrix and almost Toeplitz matrix