2-D Implementation of Barnes-Hut Algorithm for N-Body Simulation