Includes for other folders removed or shifted to .cpp #2557

Various other folders like transfer, optimization, regression etc had unused includes plus for some include was transferred to .cpp file.