Bug in inplace_solve solved, works with matrix::range. All test works correctly