here i implement and commit some standard algorithms