Sensex ends flat on profit-booking