prettyPrint now works for circular list
prettyPrint now works for circular list