Use map instead of array for storing coefficients