Map And Flatmap In Spark Scala