Liverpool edge Leeds in seven-goal classic