Solution for Kaggle Titanic challenge in ruby