Advanced type distance calculator for .NET