Comparing molecular shapes