Sensex, Nifty End With Small Gains Ahead Of Inflation Data