Performance improvements on NativeCalculator

The calculator now detects if the platform is 32-bit or 64-bit, and performs native calculation whenever possible.