Port from https://code.google.com/p/google-maps-server-side-clustering-dotnet/