moving sort to cub from thrust, also sorting only the required number of bits