gates_dt is now also a pointer to a vector defined externally