added some classical test functions and a general problem offset dx; codestyle