Time development of two and three-dimensional self-gravitating system using initial Dirac delta function distribution