Rename class Algorithm to PrimalityTest