Implemented backward pass. Moved FP and BP to thread pool.