fixed insertion balancing bug in rules 4c and 4d