A problem of buffer allocation in production lines: complexity analysis and genetic algorithms