add mutable array creation utils and apply to some.
improve OtherTemplate
add SPOJ QUEST4