Memory measurment corrections
Try of adding algorithm memory consumption measurement
Made Floyd-Warshall not-in-place