ex5-1 and ex5-2 (regularized cost & grad) done