CNN accelerated by cuda. Test on mnist and finilly get 99.7%