sorted parallel array data structure in C programming language