Changed the level-order encoding to store levels in low bytes