Comparison between Lanczos and linked cluster methods for the Heisenberg antiferromagnet on a square lattice