Allow using a Gram matrix even with more features than samples