solution for any type of geometry
add geometry types tests