Rearranging things and adding sample applications to test with our optimizations - pulled from RosettaCode, they're not my own