Added a function for IOhandler write
Removed an unnecessary assert
Fix MemoryWrite bug
Added index bound checking in floating point interpolation
Merge branch 'master' into cmake_support
Link to std math lib on unix