only recomputing one of f_x1 and f_x2
merged
Merge pull request #27 from msgmaxim/master

Optimisation of Packing