Montana men’s hoops coach gets 3-year contract