free memory we use in main()
wrote prototype for reorder_pop