Extending ladder