Connected cars project aims to end motorway pile-ups