An algorithm for constructing all supercharacter theories of a finite group