FEAT: added div-2d and mod-2d functions