Fixed parse_casefolding.pl mappings size bug

A bug in parse_casefolding.pl caused the mappings array to be using way
too much memory. Also the size changed when re-running the perl script.
This slowed down the program extremely.