Fixed 0 point distance at indefinite intergral, redone matrix creation
error