matrix: added random functions, specialized kernel for dynamic learning speed => 20% boost