Removed useless triangular functions and improved interface, implemented with std::array now