An adaptive fuzzy threshold scheme for high performance shared-memory switches