Started work on backward substition, but it is incorrect.

The loop indices are not correct.