Attemped fix to force events to be kept in time-order.
Merge branch 'master' of https://github.com/dma-ais/AisAbnormal
Code migrated to java.util.function