Safety will top priority for Indian Railways: Trivedi