Fixed memory leak and added two versions of letter-recognition dataset.