Linear Factoring