Gravar-mail: Collision avoidance algorithm for intelligent vehicles using ITS-G5