Fixed bug which caused over-clipping of sky background during estimation
Modification & Minor bug fix in Memory-Limit Check code