An implementation of Self-Organizing TDMA (STDMA) for VANETs in NS-3