Kyrie Irving dropped 40 points in the 114-112 win over the Knicks