An algorithm for the Classification of Coherence Related Overhead in Shared-Bus Shared-Memory Multiprocessors