An implementation of the ACM SIGMOD 2013 Programming Contest task. This implementation does not include the EndQuery() function, more details for the task here.