Moved is_origin and get_exact_subscript to design-matrix.[ch]