Geometry, working memory and intelligence