Add share_plane function
Use common type for set of strings
Optimise return value of extract_planes function
Use correct initial value