A Multidimensional Hydrodynamic Code for Structure Evolution in Cosmology