Move output files to a subdirectory.
Shut-up CRT deprecation warnings.
Fix bug in orient() when vectors aren't perpendicular
Add sqr and length_sqr functions