committing sorted array labs