simplify Point class with 'vertex' attribute rather than 'xy' or 'xyz' attributes depending on dimension