Billy McKay grabbed a brace as second-placed Inverness enjoyed a comfortable 2-0 victory over bottom-of-the-table Hearts at Tynecastle.