barnes hut tree library & gravity simulation demo