Added Seq.flatten and rewrote bind using flatten