Adding my solutions to sorted array iterator