Significant refactoring to allow reading and writing in distance field, and adding boost::iostreams to CMakeLists.txt as we use zlib compression for writing/reading distance fields to/from disk