The roles of patterning and spatial skills in early mathematics development