added DP cache for canJump