added delete Nth node in list algorithm