algorithm: dijikstra working, started knapsack; cpp: template and typename qualifiers examples added