Nifty Closes Near Day's High for Second Consecutive Session; Midcaps Rebound