add some function in ArrayLogic.cs