Added memUsage.sh, memUsageProgram.sh and programsUsingMem.sh as extension of swapUsage.sh.
Made functions more generic.