clean up code
make fastfunc use a vector
update NEWS
Merge pull request #36 from scrm/improve_memory_management

Improve memory management