label maps and bin maps for encoding & decoding in Julia