implemented a speed test for public key algorithms