add leftrotate method with java