added basetype helper
cleaned alloc functions
Cleanup up brick_write
more cleaning
added the new brick neighbour code to BrickDry
brick angle pass cleanup
Added comments and cleaned up oct_child()