density setting; BOUNDARY is now a variable

Previously BOUNDARY was a constexpr double; with the density setting,
the boundary is determined according to the number of readers,
dimensions, and requested density.