三角函数最大最小值函数f(x)=cos2x+2sinx的最小值和最大值分别是( )A.-3,1 B.-2,2 C.-3,