Ancestral state reconstruction

Added ancestral state reconstruction for copy number
Backend functions to handle cumbersome jobs