Iteration of different typologies based on the distance between buildings