implemented div and mutable div for double-array