A linear O(N) model: a functional renormalization group approach for flat and curved space The Latex source file of my Master's degree thesis