tested 16 bit bedpostx data encoding function for numerical correctness. Next work will change data structures to accomodate this, as well as the kernel.