-Optimized

+Added C style array template class;
-Endpoint and event objects are now represented with simple POD type -
int.
-Replaced a set of overlaps with a map to maintain a list of overlaps to
be able modify it incrementally.