Hearts continue recent revival with 3-2 victory