James Cameron congratulates Avengers: Endgame on besting Titanic