copy & paste of numpy array C-extension example
faster green detection using C-code with numpy array