pass std::function by reference

seems to be equivalent to values on OSX
CKY binary rule iterator is passed as a value

and not a pointer as before
more c++11 idioms
1a2036d continued
Small loop changes in inside/outside computations

should improve speed (branching predictions)