implemented and tested div operation (ref #191)