Add min value algorithm 

Starting for some new algorithms for going over
data.
fold/avg: Handle first element
fold/avg: Working function
Fix compiler warning

Eunit will export this for us
Improve querying
Remove unused/tested code
Add some config
Merge branch 'algos'