Implement basic kernel regression