basic code in R for predicting Survival in Titanic Disaster