Added the contains_other function to nx_rect.