start on BCD library - few core helper routines & types
working on add function now