for slicing tests, convert entire Segment to numpy array for comparisons
added test for ndim
implemented segment.ndim