create popular distances table