Nifty 50 gains 82 points, closes above 24,000 amid positive sentiment