Merge pull request #1 from visemet/aggr_node

Implemented a generic aggregate node.