Problem
Complete red-black insertion by writing the following missing functions:
(a) modify_right (b) flip_color
(c) rotate_left (d) rotate_right
(e) double_rotate_left (f) double_rotate_right
Be sure that, at the end of each function, the colors of affected nodes have been set properly, and the returned RB_code correctly indicates the current condition. By including extensive error testing for illegal situations, you can simplify the process of correcting your work.