Adapted simpleheuristic to improved version from second paper