Introduction to Quantum Algorithms via Linear Algebra, second edition