Preprocessing of Titanic dataset