added more division functions
added integer_t typedef, set to ptrdiff_t
revert back to original version