Like in the other algorithms, it's better to put the body of the algorithm here instead of in the static object. All the methods in the static object can just build a new PCA() and then call compute() on it.