Palm oil closes with 2.31pc weekly gain