Hearts are back in the top six after win over Ross County