Precise bone cuts for accurate tumor resections, joint replacements and alignment corrections