Automatically extract functions prototype

This will be used to vectorize the functions
Merge pull request #1 from jucor/extract

Automatically extract functions prototype