Real time traffic states estimation on arterials based on trajectory data