Update Miller Rabin test to use small prime filtering. Add some new integer type operations. Update performance tests to match.