# Functions
ExtractBits performs a Parallel Bit extract as per the PEXT instruction for x86/x86-64 cpus to use the second parameter as a mask to extract the bits from the first argument into a new bitmap.
GreaterThanBitmap builds a bitmap where each bit corresponds to whether or not the level in that index is greater than the value of rhs.