Fill Memory function
Give list and address