Complete code for the Kaggle competition : Titanic