Josh Hart and Jalen Brunson kept the New York Knicks in the hunt for second place in the NBA's Eastern Conference as they beat the Boston Celtics 112-106 on Thursday.