Linear algebra methods with some effort toward efficiency