initial readin for partition
solved via pivots and array