Update dot

Details:
 - Fix #21, check dtype of y