multi d 2

working but very slow (think sliding window is hangup)