Added first set of built-in aggregation functions for the new Java API.
Remove duplicate InvalidProgramException
Implement aggregation operator
Changed examples to use aggregators.