Implemented cpu predict and gpu predict kernel. Slowly approaching inevitable refactoring.