add hex to binary and viceversa functions, utils in ns cs