Fixed a bug in nn_div and wrote tests for zz_div.
Merge branch 'v0.36'