Merge branch 'develop'
fix issue #22

Use Ruby's memory allocation function xmalloc() instead of OpenCV's cvAlloc()
to run GC when running out of memory
Merge branch 'develop', remote-tracking branch 'origin' into fix/issues-22_severe_memory_leak