Rename PrimeCheck to PrimalityTest
Add virtual class Algorithm