Added vec3-class and changed system_length and cell_length from
double[3] to vec3.