Machine learning for Kaggle Titanic competition