Added 'bd' function from https://github.com/vigneshwaranr/bd/blob/master/bd