Vikings beat Lions, tie for first in division