fix bugs in base64

fix bugs in base64
add index

add index for fix bugs in base64
Merge pull request #11 from wyh267/master

fix bugs in base64.h