model: add missing functional header

g++-4.9 shows: std::mem_fn needs the functional standard header.
switch to from 0-9 to 0-127