'Get data points from the cache.
Args:
batchsize: Number of data points requested. Will return fewer than
batchsize iff the cache does not have enough data.
Returns:
Numpy array slice of shape batchsize X numdims.'

def Get(self, batchsize):

    if (self._pos == self.datasize):
        self._pos = 0
    if (self._pos == 0):
        self.LoadData()
    start = self._pos
    end = (self._pos + batchsize)
    if (end > self.datasize):
        end = self.datasize
    self._pos = end
    batch = [d[start:end] for d in self.data]
    return batch
