Milan duo to extend contracts