lat2w function

Contiguity-based weights matrix for a regular grid