Kilmarnock beat Inverness 2-0 to reach the Scottish Cup quarter-final thanks to a double from Paul Heffernan.