Adding SequenceUtil

Keep in mind that Java has checked exceptions on these things, but scala ignores them - you might want to handle it.