Sensex down 52 points, Nifty ends at 15,740; Smallcap and Midcap surge