added basic binary string utilities