Add optional matrix::rank() algorighm selection.