add clear function for array module of slib++
change stl vector into array of slib++