Remove distance maps

I'm not sure why I implemented the distance maps instead of just doing
the simple calculation on the fly - it's not significantly more
expensive than a lookup.  If I had a good reason, that good reason is
lost to time. I left the implementation commented out, so that if it
occurs to me why I made such an odd design decision and it was indeed a
good decision, I can bring it back easily.