ported glm code to library for use in other notebooks
cleaned up rank sum code
ENH: updated to use new rank comparison code