Different algorithms on arrays.