somewhat working running median