use a map instead of an array in queue system
perint usage on stderr to get non zero exit code