Store pr of arr [ i ] and W [ i ]
List < Tuple < int , float > > pr = new List < Tuple < int , float > > ( ) ; for ( int index = 0 ; index < arr . Length ; index ++ ) pr . Add ( new Tuple < int , float > ( arr [ index ] , W [ index ] ) ) ;