parafac_core_als function

Internal PARAFAC alternating least-squares (ALS) core algorithm