Why is it expensive? If somebody can describe the problem with sufficient detail and unambiguity, the core coding part will be very straight-forward, fast and cheap to do, regardless of the programming language. The problem is that very often it is impossible to do.