[core] Endpoint calculation for RK4 and RKF45 (issue #82, issue #83)