Calculate Internal And External Fragmentation