What is the midpoint of a segment whose endpoints are (4, -2) and (5, 1)?