implemented gower distance and his test