bugfix: reset temparray in divide
Merge branch 'master' into gh-pages