added newton solve method
added script for the intersection problem
added fortran code for homework3