Re-writing custom threadpool impl along with parMap/IO functions