ReorgDetectorImpl
Implementation of ReorgDetector using in-memory block history.
Thread Safety: Uses Mutex for coroutine-safe operations.
Algorithm:
Maintain sliding window of recent blocks (map: height → BlockInfo)
When new block arrives, check if parent hash matches previous block
If mismatch, walk backwards to find common ancestor
Emit ReorgEvent with old and new branches
Update block history with new canonical blocks