A two-layer control scheme for merging of automated vehicles | Synapse