Added roll flip and kron functions