Add comments for push/pop functions in jagged_array, implement generic push_back and pop_back