Fix bugs and continue implementing faster
non-allocating version.
New TbMD