Index mimatch in orbit direction compution

There is an index mismatch in orbit direction compution. idx_first and idx_last are not indexes in the OSV list, but in the footprint corner list.

The bug was introduced in #23 (closed).