Connected input/output views & refactoring

Connected my input/output views to the quicksort code and did some
refactoring.

The refactoring was that I put every function into a namespace class
(instead of declaring it globally). So there are four namespace
classes, mainNS, inputNS, sortNS, and outputNS. This is so that you
don't have a ton of global variables that might step on each other.

Also, within each namespace class, I made each function private or
public as necessary. If you're not familiar with private and public in
javascript, this is all it is… If you declare a variable with var
(variable name), then it's private to the object it's in. So list is
private to sortNS. And if you declare a variable with this.(variable
name), then it's public. So thing1click is a public function in sortNS,
and you can call it with sortNS.thing1click().

I know some people might not be familiar with this public and private
stuff but I've always found it really useful. If you have any questions
about it I'll be happy to help.