Add initial version of powermethod.