Initial checkin of HW3. Numerical stuff TODO