add pseudocode for rotate/insert