Rail alignment machine