Andy Murray booked his place in the fourth round of the US Open with a 6-1 7-5 4-6 6-2 victory against Andrey Kuznetsov.