Triangulation Fix 1

Border checking issue in MST fixed. Should still recode and optimize in
the future.