Gender differences in remembering and inferring spatial distances