two_phase_commit: split more code and fix a comment
add max function and update README about upcoming algs