barnes hut in functional style
direct hut in functional style
vector type
sketch of direct in c-like lang