Trimper agrees to 3-year extension as University of Maine baseball coach