added computation of block time using mid point rule; its derivatives implemented and checked