James Harden scored 37 points as the Houston Rockets dismissed the New York Knicks 123-112 in Madison Square Garden.