Add basic 'Fano' algorithm

Add bit read/write functions.
Add binary code type and character probability type.
Fix some bugs.
Fix coding standart.