OBJ loading optimization

Added counting of elements in order to allocate memory for vector
beforehand