Improving basis implementation of insertion operation.