Parallel N-body simulation using openMP