The CHIR Algorithm for Feed Forward Networks with Binary Weights