optimized the gain normalization
	modified:   cheb.c