added memlib script for dynamic memory request in sge