Method C for handwritten digit recognition