Market continues its rally for straight third week, Midcap and Smallcap outperform