add vector implementation of event matrix