Bug fix for get.depth()

New version takes into account the (rare) situation where the point for
which the depth is queried falls right in the middle of 2 (or 4) cells.