new cost algorithm for beams

Conflicts:
	build/vexflow/vexflow-min.js