Liverpool edge past Newcastle for narrow victory