Implement List.(index|rindex)