Created annealing training object.
Added forEach and clone methods to matrix object.