Separation of LinearAlgebra-related code inside Kernel

TC link:

viewLog.html?buildId=12169&tab=buildResultsDiv&buildTypeId=bt7

waiting for "spectrum" merge so I can get rid of the other commits