Sam Dalby’s stunning second-half header was enough to see off Hearts and keeps them on the coat-tails of Hibernian and Aberdeen.