implemented functions of vector2.h; added some functions to structcomplx.h