Newton converges, need to figure out memory issue