[FIX] bugfix for encodeSlof

- the maximal length calculated for the vector in encodeSlof is 8 bytes
  too short: it should be 8 bytes + 2 * dataSize
Merge pull request #4 from hroest/bugfix_slof

[FIX] bugfix for c++ style encodeSlof