Market ends flat after early gains; Nifty below 26,200