update feature cost after each split