Started tentative work on b_ptrmap

A home-built pointer-to-pointer map, as needed in various places. Let's hope it is useful.