Made function delete_list to free memory