activity selection problem with k persons