renamed rndAlloc -> randomList
reorganized algo/