getLongestSideLength in Escript added