added CPU k-d trees, split particles system into multiple files