A practical implementation of C++ templates based basic essential data structures and algorithms