Fast multidimensional algorithms