working on implementing cubify.

- cubfiy is a more OOP approach to do cube aggregation.

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>