Implemented frequency array by converting quaternary bases to decimal index