Added factors() and isprime() methods

Added convenience functions to factor composite numbers. Useful for finding prime factors within larger numbers (e.g. number of bits per file or message, as a way to find at N dimensional structure).