Improvements re: default cost function for simplify.m