Minor refactoring of Array.Sort replacements
Further adaptations to support portable statistics library
Portable Statistics library build successfully, still incomplete portability implementation