(Mirco Valentini) Added all the functions needed for the derivative calculation (no build and no test)