Sensex, Nifty flat but Midcap, Smallcap continue to shine