Added auxiliary functions

Functions to generate random vectors and test the order