pat advance 1057 time exceeds limit, must use binary index tree