The Hydra Code — An adaptive technique for calculating the gravitational and hydrodynamical forces within a box.