Pop density calc and Bivand Chapter 5 functions