Use a circular indexing scheme as described in the book.