Improved runtime complexity of populating matrix