Nifty 50 gains 159 points or 0.63% to close at 25,219.90, while Sensex surges 539.83 points or 0.66% to end at 82,726.64