Automatic morphological alignment and clustering