Implemented significance tests and power iteration