tmpformat: minor fixes
tmp-format: pass param as reference to avoid memory release at the end of the function
tmp-format: enforce constness in TmpData's data attribute
pca: start implementent PCA in CUDA