Add function to convert decimal to binary

Signed-off-by: coldnew <coldnew.tw@gmail.com>