implemented Crank Nicolson Method, but not working properly