Nifty, Sensex end higher ahead of inflation data; Infosys drops | Sharefundss