Added Alternate node reversal program