Find height for an MBR working and a few more conversion functions.