KnapSack Problem Various Implementaions