Added a bin-to-dec converter