Adding C Backend and correcting some issue about perceptron's output