Linear Algebra for Localization (Algorithms, Use Cases, and C++ Implementations)