added openMP support and parallelized gravity calculation