Optimization Algorithms in Function of Binary Character Recognition