Crude correlation implementation with no typechecks yet