Refactor: Rename memory to saved_pixels
Refactor: Replace manual C memory management with C++

- Replace allocated buffer saved_pixels with std::vector
- Replace allocated PalTable with new/delete
Refactor: Replace use of the heap with the stack
Refactor: Remove dead code
Refactor: Name parameters in prototype
Refactor: Input arguments are const
Refactor: Replace memory aliasing with std::string
Refactor: Replace memory aliasing with std::vector
Refactor: Make sins/coss visible only to lsys.cpp
Refactor: Replace memory aliasing with std::vector
Refactor: Delete unused variable
Refactor: Input parameters are const
Refactor: Replace std::unique_ptr<int[]> with std::vector<int>
Refactor: Replace std::unique_ptr<int[]> with std::vector<int>
Refactor: Inline macro
Refactor: Replace memory aliasing with std::vector
Refactor: Rename decoderline1 to decoderline
Refactor: Delete unused global
Refactor: Replace memory aliasing with std::vector
Refactor: Replace memory aliasing with std::vector