optimize: improving the smart gradient accumulator and online trainer
optmize: making WeightsMap.keys more efficient
Merge branch 'optimize-issue'