finished mostly implementing vector type in lua