Feature/is simple

First complement implementation of is_valid/is_simple for all geometries.
@awulkiew I wasn't sure whether visited(bool) or set_visited(bool) (and similarly for parent_id) was preferable; I almost randomly chose the first. I will modify this and commit.