add indexOf for doubles