2d vector class for lua