Refactoring *____*

Rename all pie* to pie_*
Make changes in function names, like pieVectorDouble -> pie_dVector
Plus some other changes