finding best range for a feature weight