Updated variable-scoping.md & edited introduction-to-sorting.md