Use of Advance Technology to Prevent Train Accidents