Added 'pivot_index' to implementation file. ty to Hannah for the bug report.