add a class to help deal with frozen atoms

the class converts to and from a reduced representation of the
coordinates by removing the frozen degrees of freedom.
fix bug in Array::resize()