Update p2.cpp

Implementation of 'insert_list'