An algebraically inspired pipeline library for C++