Smart scalpel that can differentiate between a tumor and hea