worked on array algorithms