Heuristic algorithm to optimise the manufacturing system design to get maximum profit