CS 240: added alternative formula for interpolation search index.