Hardware and software architectures for irregular problem architectures