prepared mixed implementation when the first few stages of the cascade are executed on GPU and the later stages - on CPU