got steepest descent and newtons method working together.