Sensex Ends Above 51,100, Nifty Registers Record Closing High