Numerical Algorithms Assignment 2