changed memory layer to accept 4 inputs
added forward to caffe cpp script for hdf file
Added example usage