An Introduction To Tensor Networks And Matrix Product States With Applications In Waveguide Quantum Electrodynamics