Add fold method.
Add collapse_left/right and merge_left/right methods.
Resolve merge conflict.