made levelsetmethod into a function

use mainForLevelSetMethod to make multiple graphs for the first section