A cost model for human skeleton