spiral classifier function examples pdf