working greedy pack algorithm.
added test
adding