Aspect keeping resize in convert_imageset

Three changes:
1) Added aspect keeping resize possibility to convert_imageset and io.cpp (as lots of people use it since "Some Improvements on Deep Convolutional Neural Network Based Image Classification" http://arxiv.org/abs/1312.5402 )
2) At<>`s changed to pointers for speed.
3) Function MatToDatum.