cost adjustment

self-balancing flip the bit