added 6 algo hw (median implementation)