Indian markets extend gains with Sensex surging past 77,900.