Pack integers into bigger integers